<?php
require_once("../config.php");
page_constant("admin_login");
//echo md5("123456");

if(isset($_POST['username']))
{
	if(($_POST['username']=="shelly" or $_POST['username']=="bedi") and md5($_POST['password'])=="e10adc3949ba59abbe56e057f20f883e")
	{
		$_SESSION['admin_user']=$_POST['username'];
		header("location:admin.php?belongto=season");
	}
	else
	{
		$tpl->assign("error","用户名密码错误！");
		$tpl->display("admin_log.tpl");
	}
}
else
{
	$tpl->display("admin_log.tpl");
}
?>